boolean debugCursor=true;
boolean defaultCursor=true;
boolean paintCursor=false;
boolean touchCursor=false;
boolean gestureCursor=false;
boolean audioCursor=false;
boolean gridMode=false;

void keyPressed(){
if(keyCode==112) {if (defaultCursor==true) {defaultCursor=false;} else {defaultCursor=true;}}
if(keyCode==113) {if (debugCursor==true) {debugCursor=false;} else {debugCursor=true;}} 
if(keyCode==114) {if (touchCursor==true) {touchCursor=false;} else {touchCursor=true;}} 

//if(key==0) {if (audioCursor==true) {audioCursor=false;} else {audioCursor=true;}} 
if(keyCode==ENTER) {if (gestureCursor==true) {gestureCursor=false;} else {gestureCursor=true;}}
if (key=='s') saveFrame("frame.tga");
if (key==' ') {if (gridMode==true) {gridMode=false;/*createObject(-500,-500,-500,-500,-500);*/} else {gridMode=true;createObject(275,300,725,850,1400); }}

//paint
if (key=='`') {if (paintCursor==true) {paintCursor=false;} else {paintCursor=true;}} 
if (key=='1') bUseColor = !bUseColor;
if (key=='2') bScaleReduce = !bScaleReduce;
if (key=='3') pal.select();
}


